package org.metasketch.ham.diagrams.units;

import javafx.scene.paint.Color;
import javafx.scene.shape.Line;
import javafx.scene.shape.Rectangle;

public class ArtifactNode extends ParticipationUnitNode {

	public ArtifactNode() {
		Rectangle rect = new Rectangle(0, 0, width, height);
		rect.setFill(Color.TRANSPARENT);

		Rectangle head = new Rectangle(width, width);
		head.setStroke(Color.BLACK);
		head.setFill(Color.WHITE);
		head.setTranslateY(width*0.5);

		Line arms = new Line(width*0.5, 0, width*0.5, width*0.5);

		Line leftLeg = new Line(width*0.25, 0, width-width*0.25, 0);

		getChildren().addAll(rect, head, arms, leftLeg);
	}

}
